import layout from '@/layout'
import path from 'path'

export default {
  path: '/approval',
  component: layout,
  children: [{
    hidden: true,
    path: '',
    name: 'approval',
    component: () => import('@/views/approval'),
    meta: {
      title: '审批',
      icon: 'tree-table',
    }
  }, {
    path: '/approvals/leaveApproval/:id',
    name: 'leaveApproval',
    component: () => import('@/views/approval/leave.vue'),
    hidden: true
  }
    , {
      path: '/approvals/quitApproval/:id',
      name: 'quitApproval',
      component: () => import('@/views/approval/quit.vue'),
      hidden: true
    }
    , {
      path: '/approvals/overtimeApproval/:id',
      name: 'overtimeApproval',
      component: () => import('@/views/approval/overtime.vue'),
      hidden: true
    }]
}
